﻿using System.Collections.Generic;

namespace VEGA.Algorithm.Elements
{
    class IndividualIpcComparison : IComparer<Individual>
    {
        public int Compare(Individual x, Individual y)
        {
            if (x.Ipc > y.Ipc)
                return 1;
            if (x.Ipc < y.Ipc)
                return -1;
            
            return 0;

        }
    }
}
